import request from '@/utils/request'

export function getUserCheck(params) {
    return request({
        url: 'check/user/list',
        method: 'get',
        params
    })
}

export function getExam(checkId) {
    return request({
        url: 'check/exam',
        method: 'get',
        params: {
            checkId: checkId
        }
    })
}

export function commitExam(data) {
    return request({
        url: 'check/commit',
        method: 'post',
        data
    })
}

export function getUserExam() {
    return request({
        url: 'check/user/exam',
        method: 'get',
    })
}

export function getRank(params) {
    return request({
        url: 'check/getRank',
        method: 'get',
        params
    })
}

export function getExamStatistics(params) {
    return request({
        url: 'check/user/exam-statistics',
        method: 'get',
        params
    })
}


